ASP.NET Core MVC Controls | ComponentOne
C1.Web.Mvc Namespace / MultiSelect<T> Class / MaxHeaderItems Property






In This Topic
    MaxHeaderItems Property (MultiSelect<T>)
    In This Topic
    Gets or sets the maximum number of items to display on the control header.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DefaultValueAttribute(2)>
    Public Property MaxHeaderItems As System.Integer
    'Usage
     
    
    Dim instance As MultiSelect(Of T)
    Dim value As System.Integer
     
    instance.MaxHeaderItems = value
     
    value = instance.MaxHeaderItems
    [System.ComponentModel.DefaultValue(2)]
    public System.int MaxHeaderItems {get; set;}
    public read-write property MaxHeaderItems: System.Integer; 
    System.ComponentModel.DefaultValueAttribute(2)
    public function get,set MaxHeaderItems : System.int
    [System.ComponentModel.DefaultValue(2)]
    public: __property System.int get_MaxHeaderItems();
    public: __property void set_MaxHeaderItems( 
       System.int value
    );
    [System.ComponentModel.DefaultValue(2)]
    public:
    property System.int MaxHeaderItems {
       System.int get();
       void set (    System.int value);
    }
    Remarks
    If no items are selected, the header displays the text specified by the Placeholder property.If the number of selected items is smaller than or equal to the value of the MaxHeaderItems property, the selected items are shown in the header. If the number of selected items is greater than MaxHeaderItems, the header displays the selected item count instead.
    See Also